<?php
/**
认证
 */
require_once(dirname(__FILE__)."/config.php");
CheckRank(0,0);
$menutype = 'config';
if(!isset($dopost)) $dopost = '';

$row=$dsql->GetOne("SELECT  * FROM `#@__member` WHERE mid='".$cfg_ml->M_ID."'");
if($dopost=='save')
{
    $addtime = time();
	$query = "UPDATE `#@__member` SET xingming='$xingming',shouji='$shouji',sfzhm='$sfzhm',shenfenzheng='$shenfenzheng',renzheng='1',addtime='$addtime' where mid='".$cfg_ml->M_ID."' ";
    $dsql->ExecuteNoneQuery($query);
    // 清除会员缓存
    $cfg_ml->DelCache($cfg_ml->M_ID);
   
    $arr = array(
	       "zhi"=>"ok",
	        "msg"=>"认证提交成功，请耐心等待工作人员审核"
        );
        echo json_encode($arr);
        exit;
}
include(DEDEMEMBER."/templets/renzheng.htm");